1 /* 2 * Copyright (C) 2010 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 /** 18 * @addtogroup Storage 19 * @{ 20 */ 21 22 /** 23 * @file obb.h 24 */ 25 26 module android.ndk.obb; 27 28 import arsd.jni; 29 import android.ndk; 30 31 extern (C): 32 nothrow: 33 @nogc: 34 35 struct AObbInfo; 36 /** {@link AObbInfo} is an opaque type representing information for obb storage. */ 37 38 /** Flag for an obb file, returned by AObbInfo_getFlags(). */ 39 enum 40 { 41 /** overlay */ 42 AOBBINFO_OVERLAY = 0x0001 43 } 44 45 /** 46 * Scan an OBB and get information about it. 47 */ 48 AObbInfo* AObbScanner_getObbInfo (const(char)* filename); 49 50 /** 51 * Destroy the AObbInfo object. You must call this when finished with the object. 52 */ 53 void AObbInfo_delete (AObbInfo* obbInfo); 54 55 /** 56 * Get the package name for the OBB. 57 */ 58 const(char)* AObbInfo_getPackageName (AObbInfo* obbInfo); 59 60 /** 61 * Get the version of an OBB file. 62 */ 63 int AObbInfo_getVersion (AObbInfo* obbInfo); 64 65 /** 66 * Get the flags of an OBB file. 67 */ 68 int AObbInfo_getFlags (AObbInfo* obbInfo); 69 70 // ANDROID_OBB_H 71 72 /** @} */